class HomeBannerModel {
  int ret;
  Data data;
  String msg;

  HomeBannerModel({this.ret, this.data, this.msg});

  HomeBannerModel.fromJson(Map<String, dynamic> json) {
    ret = json['ret'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ret'] = this.ret;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['msg'] = this.msg;
    return data;
  }
}

class Data {
  int total;
  List<BannerModel> bannerModelList;
  List<String> fieldCnName;
  List<String> fieldAliasName;

  Data({this.total, this.bannerModelList, this.fieldCnName, this.fieldAliasName});

  Data.fromJson(Map<String, dynamic> json) {
    total = json['total'];
    if (json['rows'] != null) {
      bannerModelList = new List<BannerModel>();
      json['rows'].forEach((v) {
        bannerModelList.add(new BannerModel.fromJson(v));
      });
    }
    fieldCnName = json['fieldCnName'].cast<String>();
    fieldAliasName = json['fieldAliasName'].cast<String>();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total'] = this.total;
    if (this.bannerModelList != null) {
      data['rows'] = this.bannerModelList.map((v) => v.toJson()).toList();
    }
    data['fieldCnName'] = this.fieldCnName;
    data['fieldAliasName'] = this.fieldAliasName;
    return data;
  }
}

class BannerModel {
  int aDSENSEPHOATM404;
  int aFM1;
  String aFM2;
  String aFM4;
  String aFM5;
  String aFM6;
  int iD;
  String jUMPURL;
  int lMFID;
  int lMFPAGEID;
  String pICTURE;
  int t7500;

  BannerModel(
      {this.aDSENSEPHOATM404,
        this.aFM1,
        this.aFM2,
        this.aFM4,
        this.aFM5,
        this.aFM6,
        this.iD,
        this.jUMPURL,
        this.lMFID,
        this.lMFPAGEID,
        this.pICTURE,
        this.t7500});

  BannerModel.fromJson(Map<String, dynamic> json) {
    aDSENSEPHOATM404 = json['ADSENSE_PHO_ATM_4_0_4'];
    aFM1 = json['AFM_1'];
    aFM2 = json['AFM_2'];
    aFM4 = json['AFM_4'];
    aFM5 = json['AFM_5'];
    aFM6 = json['AFM_6'];
    iD = json['ID'];
    jUMPURL = json['JUMPURL'];
    lMFID = json['LMF_ID'];
    lMFPAGEID = json['LMF_PAGEID'];
    pICTURE = json['PICTURE'];
    t7500 = json['T_750_0'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ADSENSE_PHO_ATM_4_0_4'] = this.aDSENSEPHOATM404;
    data['AFM_1'] = this.aFM1;
    data['AFM_2'] = this.aFM2;
    data['AFM_4'] = this.aFM4;
    data['AFM_5'] = this.aFM5;
    data['AFM_6'] = this.aFM6;
    data['ID'] = this.iD;
    data['JUMPURL'] = this.jUMPURL;
    data['LMF_ID'] = this.lMFID;
    data['LMF_PAGEID'] = this.lMFPAGEID;
    data['PICTURE'] = this.pICTURE;
    data['T_750_0'] = this.t7500;
    return data;
  }
}